/**
 * This file is part of the FlexiTimer project.
 * 
 * Author: Florian Arndt <f.aarndt@web.de>
 *  	   Clemens Teichmann <>
 *
 * http://code.google.com/p/flexitimer/ 
 */

package flexitimer_client.gui;

import java.awt.BorderLayout;
import java.awt.TextArea;

import javax.swing.JFrame;

public class infoFrame extends JFrame{

	private static infoFrame instance = null;
	
	private infoFrame() {
		super("FlexiTimer - Info");
		initGUI();
	}
	
	private void initGUI() {
		TextArea info = new TextArea("", 20,20,TextArea.SCROLLBARS_NONE);
		String infoText = 
			"FlexiTimer\n" +
			"Version 0.07\n" +
			"Copyright 2010 Florian Arndt, Clemens Teichmann\n\n" +
			"Versionsinfo:\n" +
			"0.02: BugFix 'Freitags-Bug', Info-Frame added\n" +
			"0.03: DLR BV Gleitzeit added, auto Countdown added, Bug-Fixes\n" +
			"0.04: Einstellungen added\n" +
			"0.05: Countdown-Bug fixed\n" +
			"0.06: TrayIcon function added, BugFix Arbeitszeit, 'SofortAusstempeln' added\n" +
			"0.07: Pop-Up-time option added, input fields improved, min. negative time bug fixed";// +
			//"tray behavior adapted, autoUpdate now singleton, Start/Stop Countdown now possible, popup options";
		info.setText(infoText);
		info.setEditable(false);
		
		setSize(500,300);
		setLayout(new BorderLayout());
		setResizable(false);
		add(info, BorderLayout.CENTER);
		setDefaultCloseOperation(DISPOSE_ON_CLOSE);
	}
	
	public static infoFrame getInstance() {
		if (instance == null) {
			instance = new infoFrame();
		}
		return instance;
	}
}
